<template>
	<view>
		<view class="">
			我是空调页

		</view>
	</view>
</template>

<script>
	import mqttUtil from '../../mqtt/mqtt.js'
	const mqttll = new mqttUtil()
	export default {
		data() {
			return {

			}
		},
		mounted() {
			this.gettemperature()
		},

		methods: {
			gettemperature() {
				mqttll.sendMes("can2android", "02,02,00,00,00,00,00,00")
				this.sendCommand()
			},
			sendCommand() {
				uni.$on('data_android2can', this.massage)

			},
			massage(data) {
				console.log(data.msg)
			}


		}
	}
</script>

<style>

</style>